<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Jenkins 自动部署演示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
        }

        .container {
            text-align: center;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        }

        h1 {
            font-size: 3em;
            margin-bottom: 20px;
            animation: fadeInDown 1s ease-in-out;
        }

        .version {
            font-size: 1.5em;
            margin: 20px 0;
            padding: 15px 30px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            display: inline-block;
        }

        .info {
            margin-top: 30px;
            font-size: 1.1em;
            line-height: 1.8;
        }

        .badge {
            display: inline-block;
            margin: 10px 5px;
            padding: 8px 15px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            font-size: 0.9em;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .status {
            margin-top: 30px;
            padding: 20px;
            background: rgba(46, 213, 115, 0.3);
            border-radius: 10px;
            border-left: 5px solid #2ed573;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🚀 Jenkins 自动部署</h1>

        <div class="version">
            版本：v1.0.1
        </div>

        <div class="info">
            <p>✅ 应用已成功部署</p>
            <p>📅 部署时间：<span id="deployTime"></span></p>
            <p>🖥️ 服务器：CentOS Stream 9</p>
        </div>

        <div class="badges">
            <span class="badge">🐳 Docker</span>
            <span class="badge">🔧 Jenkins</span>
            <span class="badge">📦 Nginx</span>
            <span class="badge">🔄 CI/CD</span>
        </div>

        <div class="status">
            <strong>✨ 自动化部署流程</strong><br>
            代码提交 → Jenkins 检测 → 自动构建 → 备份旧版 → 部署新版 → 健康检查
        </div>
    </div>

    <script>
        // 显示部署时间
        document.getElementById('deployTime').textContent = new Date().toLocaleString('zh-CN');
    </script>
</body>
</html>
